/**
 * Created by panca on 16/9/6.
 * URL
 */
import React from 'react';

// let baseUrl = 'https://www.cehse.com/cehseweb';

let baseUrl = 'http://www.mock.com/test';

class URLClass extends React.Component{

    //获取baseUrl
    get baseUrl(){
        return baseUrl;
    }
    //设置baseUrl
    set baseUrl(url){
        baseUrl = url;
    }

    //1.写接口地址到URL中
    get getLoginInfo() { return (baseUrl + '/j_spring_security_check') }
    //怎么定义需要请求的名字  用接口地址里面的取名
    get getPsmcheckAppList() { return (baseUrl + '/psm/check/psmcheck/appList.htm') }
    
    get getData() { return (baseUrl + '/dist/mock') }
    get getHttpstu1() { return baseUrl + "/dist/httpstu1"; }


}   

let URL = new URLClass();

export default URL;
